import request from '@/utils/request'

// 权限
export function fetchPermissionList(query) {
  return request({
    url: '/backend/permission/list',
    method: 'get',
    params: query
  })
}

export function fetchCreatePermission(data) {
  return request({
    url: '/backend/permission/create',
    method: 'post',
    data: data
  })
}

export function fetchUpdatePermission(data) {
  return request({
    url: '/backend/permission/update',
    method: 'post',
    data: data
  })
}
